package com.zudada.servermain.POJO.enums;

public final class RangeConstants {

    private RangeConstants() {
        // 私有构造，防止实例化
    }

    public static final String RANGE_1 = "0-20";
    public static final String RANGE_2 = "20-50";
    public static final String RANGE_3 = "50-100";
    public static final String RANGE_4 = "100元以上";
    public static final String RANGE_0 = "未知区间";

    /**
     * 根据rangeId获取对应显示文本
     */
    public static String getRangeName(int rangeId) {
        switch (rangeId) {
            case 1:
                return RANGE_1;
            case 2:
                return RANGE_2;
            case 3:
                return RANGE_3;
            case 4:
                return RANGE_4;
            default:
                return RANGE_0;
        }
    }
}
